import ruleOpt from '@/biz/option/rule.js'

function optionsjobManage(_this) {
  return [
    [{
      title: '岗位名称',
      key: 'positionName',
      group: [{
        key: 'positionName',
        placeholder: '请输入岗位名称',
        col: 14,
        input: {
          maxlength: 20,
        },
      }],
      rules: [
        ruleOpt.required('请输入岗位名称')
      ]
    }],
    [{
      title: '是否参与奖金结算',
      key: 'bonusFlag',
      radio: {
        options: [{
          key: '1',
          value: '参与'
        },
        {
          key: '2',
          value: '不参与'
        }, ]
      },
      rules: [
        ruleOpt.required('请选择是否参与奖金结算')
      ]
    }],
    [{
      title: '岗位状态',
      key: 'stateFlag',
      radio: {
        options: [{
          key: '1',
          value: '启用'
        },
        {
          key: '2',
          value: '禁用'
        }, ]
      },
      rules: [
        ruleOpt.required('请选择是否参与奖金结算')
      ]
    }],
    [{
      title: '备注',
      key: 'remark',
      group: [{
        key: 'remark',
        placeholder: '请输入备注',
        col: 14,
        input: {
          type: 'textarea',
          autosize: {
            minRows: 3,
            maxRows: 5
          },
          maxlength: 300,
        },
      }],
      rules: [
        ruleOpt.max(300)
      ]
    }]
  ]
}
export default {
  optionsjobManage
}